#pragma once

#include "AccountFactory.h"
#include <string>
using namespace std;

class AccountImpl;

class Account_t {
public:
	~Account_t();
	Account_t(Bank_t* b, int accountType, int percent, int date, int period);

	void Update(Bank_t* ChngBank, const string& message);

	int getPercent() const { return m_Account->getPercent(); }
	int getDate() const { return m_Account->getDate(); }
	int getPeriod() const { return m_Account->getPeriod(); }

protected:
	AccountImpl*  m_Account;
};
